package com.cjy.graphics;

import java.io.PrintStream;

public class Circle extends GeometricObject{
    private double radius;

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return this.radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getArea() {
        return this.radius * this.radius * Math.PI;
    }

    public double getDiameter() {
        return 2.0 * this.radius;
    }

    public double getPerimeter() {
        return 2.0 * this.radius * Math.PI;
    }

    public void printCircle() {
        PrintStream var10000 = System.out;
        String var10001 = String.valueOf(this.getDateCreated());
        var10000.println("The circle is created " + var10001 + " and the radius is " + this.radius);
    }
}
